require(["common", "jQuery", "coAjax", "queryString", "hash_routie"], function(jSouper, $, coAjax, QueryString, hash_routie) {
	hash_routie.on("bus_user", function() {
		App.set('title', '提现管理');
		coAjax.get(appConfig.bus.bus_user, function(result) {
			console.log(result.result);
			App.set("$Cache.bus.bus_user.all", result.result);
		});
	});

	App.set("$Event.bus_user.update_config", function() {
		coAjax.put(appConfig.bus.set_info_url, App.get("bus_loginer.info"), function(result) {
			App.set("bus_loginer", result.result);
			alert("success", "配置修改成功");
		});
	});

	App.set("$Event.bus.bus_user.商家已经打款_to_用户确认收款", function(e, vm) {
		coAjax.put(appConfig.bus.bus_user_state_申请兑换中_to_商家已经打款, {
			user_id: vm.get("user_id")
		}, function(result) {
			console.log(result.result);
			vm.set(result.result);
		});
	});
});